package com.ihelp.rest.mis.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

import org.hibernate.annotations.AccessType;

@SuppressWarnings("deprecation")
@org.hibernate.annotations.Entity(selectBeforeUpdate = true, dynamicInsert = true, dynamicUpdate = true)
@javax.persistence.Entity
@javax.persistence.Table(name = "ADMDIVISION")
@AccessType("field")
public class Admdivision implements Serializable{
	private static final long serialVersionUID = 1L;
	/**
	 *
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="seq_admdivision")
	@SequenceGenerator(name="seq_admdivision",sequenceName="ADMDIVISION_SEQ",allocationSize=1)
	@Column(name="ID")
	private Long id;
	/**
	 *
	 */
	@Column(name = "ADCODE", length = 6)
	private String adcode;
	/**
	 *
	 */
	@Column(name = "ADNAME", length = 100)
	private String adname;
	/**
	 *
	 */
	@Column(name = "PARENTCODE", length = 6)
	private String parentcode;
	/**
	 *
	 */
	public Long getId(){
		return this.id;
	}
	/**
	 *
	 *@param id
	 */
	public void setId(Long id){
		this.id=id;
	}

	/**
	 *
	 */
	public String getAdcode(){
		return this.adcode;
	}
	/**
	 *
	 *@param adcode
	 */
	public void setAdcode(String adcode){
		this.adcode=adcode;
	}

	/**
	 *
	 */
	public String getAdname(){
		return this.adname;
	}
	/**
	 *
	 *@param adname
	 */
	public void setAdname(String adname){
		this.adname=adname;
	}

	/**
	 *
	 */
	public String getParentcode(){
		return this.parentcode;
	}
	/**
	 *
	 *@param parentcode
	 */
	public void setParentcode(String parentcode){
		this.parentcode=parentcode;
	}
}
